/**
 * 
 */
package org.cuatrovientos.erp.model;


import javax.validation.constraints.Min;
import javax.validation.constraints.Size;
import java.sql.Date;
/**
 * @author eneko_lana
 *
 */
public class Currency {
	
	private int id;
	
	@Size(min=1,max=30,message="{shipment.name.error}")
	private String name;
	
	@Size(min=1,max=3,message="{shipment.abbreviation.error}")
	private String abbreviation;

	@Min(value=0,message="{shipment.changeeuro.error}")
	private float changeeuro;	
	
	@Min(value=1,message="{shipment.idcountry.error}")
	private int idcountry;
	
	public Currency () {
		
	}
	
	public Currency(int id, String name, String abbreviation,
			Float changeeuro, int idcountry) {
		this.id = id;
		this.name = name;
		this.abbreviation = abbreviation;
		
		this.changeeuro = changeeuro;
		this.idcountry = idcountry;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getAbbreviation() {
		return abbreviation;
	}

	public void setAbbreviation(String abbreviation) {
		this.abbreviation = abbreviation;
	}

	public float getChangeeuro() {
		return changeeuro;
	}

	public void setChangeeuro(float changeeuro) {
		this.changeeuro = changeeuro;
	}

	public int getIdcountry() {
		return idcountry;
	}

	public void setIdcountry(int idcountry) {
		this.idcountry = idcountry;
	}

	@Override
	public String toString() {
		return "Currency [id=" + id + ", name=" + name + ", abbreviation="
				+ abbreviation + ", changeeuro=" + changeeuro + ", idcountry="
				+ idcountry + "]";
	}


}
